Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several new utility classes and interfaces to the
plugin-enginelibrary, improves command registration for Paper plugins, and adds support for reloadable components. It also updates the project version to1.1.0and provides comprehensive documentation in theREADME.md. The changes enhance plugin development by adding reusable helpers, improving modularity, and increasing developer ergonomics.New utilities and helpers:
OptionalBool, a functional-style utility for conditional execution and value mapping based on boolean state.IntList, a parser for string lists into integer lists, including support for ranges (e.g.,"5-10").Cooldowns, a component for managing per-player cooldowns with automatic cleanup on player quit.Plugin lifecycle and reload support:
Reloadableinterface and integrated reload logic intoPaperPlugin, allowing beans implementingReloadableto be reloaded via the plugin. [1] [2]Command framework improvements:
PaperCommandinterface and updatedPaperCommandRegistryto auto-discover and register onlyPaperCommandbeans, ensuring proper command registration for Paper plugins. [1] [2]Documentation and versioning:
README.mdcovering features, installation, quick start, and usage examples for plugin developers.1.1.0in bothcommonandpapermodules. [1] [2]Paper plugin enhancements:
PaperPluginnow auto-registers allListenerbeans on enable, improving event handling setup.PaperCommandRegistry.These changes collectively make plugin development easier, more modular, and provide robust utility support for common tasks.